package cn.itcast.annotation.ParsingBug;

/**
 *
 *
 * @author Mc.Chai
 * @program: JavaWeb
 * @create 2021-12-07-15:30 15:30
 */
public class Calculator {
    @check
    public void add(){
        System.out.println(" 1 + 2 = "+( 1+2 ));
    }
    @check
    public void sub(){
        System.out.println(" 1 - 2 = "+( 1-2 ));
    }
    @check
    public void take(){
        System.out.println(" 1 * 2 = "+( 1*2 ));
    }
    @check
    public void div(){
        System.out.println(" 1 / 0 = "+( 1/0 ));
    }
    //不会发生异常的类
    public void show(){
        System.out.println("------不可能发生异常------");
    }
}
